package com.fqgj.sentry.manage.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.sentry.manage.dao.McRoleDao;
import com.fqgj.sentry.manage.entity.McRoleEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
* User: ykpbean
* Date: 2017-07-12
* Time: 14:21:02.935
*/

@Repository
public class McRoleDaoImpl extends AbstractBaseMapper<McRoleEntity> implements McRoleDao {
    @Override
    public List<McRoleEntity> selectByRolesId(String rolesId) {
        return this.getSqlSession().selectList(this.getStatement(".selectByRolesId"),rolesId);
    }

    @Override
    public List<McRoleEntity> selectRoleList(HashMap<String,Object> param) {
        return this.getSqlSession().selectList(this.getStatement(".selectRoleList"),param);
    }
}